<template>
	<view>
		<block v-if="list.length">
			<!-- 医生列表 -->
			<view class="margin" @click="go(val)" v-for="(val,i) in list" :key="i">
				<view class="item1  flexflex u-border-bottom my-10">
					<view class="mr-10 ">
						<u-avatar :src="val.uheadPic  || '/static/img/finddoctor/02-yishen.png' "></u-avatar>
					</view>
					<view class="" style="width: 100%;">
						<u-row :gutter='5'>
							<u-col span="3">
								<view class="demo-layout bg-purple-light">
									<view class="size_16 font_b">{{val.uname }}</view>
								</view>
							</u-col>
							<u-col span="6">
								<view class="demo-layout bg-purple">
									<view class="size_14">{{val.utechp }}</view>
								</view>
							</u-col>
							<u-col span="3">
								<view class="demo-layout bg-purple-light">
									<view class="size_14  uni-text-gray" v-if="val.applyStatus == '0'">{{'待接诊'}}</view>
									<view class="size_14  text-blue" v-if="val.applyStatus == '1'">{{'问诊中'}}</view>
									<view class="size_14 text-yellow" v-if="val.applyStatus == '3'">{{'已完成'}}</view>
								</view>
							</u-col>
						</u-row>
						<u-row class="mt8 ms10  ">
							<u-col span="8">
								<view class="demo-layout bg-purple-light">
									<view class="size_14 ">{{val.ucompname }}</view>
								</view>
							</u-col>
							<u-col span="4">
								<view class="demo-layout bg-purple">
									<view class="size_14">{{val.udepartmentname }}</view>
								</view>
							</u-col>
						</u-row>
						<u-row>
							<u-col>
								<view class="demo-layout bg-purple mb-10 ">
									<text class="u-line-1 size_12 color_84">{{val.introduction}}</text>
								</view>
							</u-col>
						</u-row>

					</view>
				</view>
			</view>
		</block>
		<u-empty v-else mode="data">
		</u-empty>
	</view>
</template>

<script>
	export default {
		name: "doctorList",
		data() {
			return {

			}
		},
		props: {
			list: {
				type: Array,
				default: () => {
					return []
				}
			},
			url: {
				type: String,
				default: () => {
					return ""
				}
			},
			status: {
				type: String,
				default: () => {
					return "nomore"
				}
			}
		},
		methods: {
			go(val) {
				this.$pub.go('/pages_message/chathos/chathos?data=' + encodeURIComponent(JSON.stringify(val)));
			}
		},
		created() {},
		onLoad() {},
		onShow() {},
	}
</script>

<style lang="scss">

</style>